package model.kml;

import java.util.ArrayList;
import java.util.List;

public class Style {
	
	private String id;
	private List<GeometryStyle> geometryStyles;
	
	public Style(){
		this.geometryStyles = new ArrayList<GeometryStyle>();
	}
	
	public void setId(String id){
		this.id = id;
	}
	
	public String getId(){
		return this.id;
	}
	
	public void addGeometryStyle(GeometryStyle geomStyle){
		this.geometryStyles.add(geomStyle);
	}
	
	@Override
	public String toString(){
		String styleString = "<Style id=\""+this.id+"\">\n";
		for (GeometryStyle geomStyle : this.geometryStyles) {
			styleString += geomStyle.toString();
		}
		styleString += "</Style>";
		return styleString;
	}

}
